/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Logica.Core.PersonaLegal;

import Logica.Core.Personal.Insumo;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.OneToMany;

/**
 *
 * @author Luciano
 */
@Entity
public class Proveedor extends PersonaJuridica{

    @OneToMany
    private List<Insumo> misInsumos;

    public Proveedor() {
    }

    public Proveedor(String cuil, String nombre, String direccion, String email, String telefono) {
        super(cuil, nombre, direccion, email, telefono);
        this.misInsumos = null;
    }

    public List<Insumo> getMisInsumos() {
        return misInsumos;
    }

    public void setMisInsumos(List<Insumo> misInsumos) {
        this.misInsumos = misInsumos;
    }
    
    
    
}
